﻿using System;

namespace ConsoleApplicationSvc
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("To create Svc files, press 'c' and <ENTER>.");
            string line = Console.ReadLine();

            if (line.ToLower() != "c") return;

            Console.WriteLine();
            Console.WriteLine("creating Svc files...");
            Console.WriteLine();

            SvcCreator serviceHost = new SvcCreator();
            string svcCreationPath = serviceHost.CreateSvcFiles();

            Console.WriteLine("Svc files are created. Check files under ");
            Console.WriteLine(svcCreationPath);
            Console.WriteLine();
            Console.WriteLine("Press <ENTER> to close window.");
            Console.WriteLine();
            Console.ReadLine();
        }
    }
}
